import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'custom_model.dart';
import 'flutter_presentation_method_channel.dart';

abstract class FlutterPresentationPlatform extends PlatformInterface {
  /// Constructs a FlutterPresentationPlatform.
  FlutterPresentationPlatform() : super(token: _token);

  static final Object _token = Object();

  static FlutterPresentationPlatform _instance = MethodChannelFlutterPresentation();

  /// The default instance of [FlutterPresentationPlatform] to use.
  ///
  /// Defaults to [MethodChannelFlutterPresentation].
  static FlutterPresentationPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [FlutterPresentationPlatform] when
  /// they register themselves.
  static set instance(FlutterPresentationPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> startSubScreen(CustomModel model) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> loadData(CustomModel model) {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }
}
